package com.nw.dsl4j.samples.resolutions;

import java.util.ArrayList;
import java.util.List;

import com.nw.dsl4j.annotations.Cardinality;
import com.nw.dsl4j.annotations.CardinalityType;
import com.nw.dsl4j.annotations.DSL;
import com.nw.dsl4j.annotations.Rule;

@DSL(imports={"com.nw.dsl4j.grammar"})
@Rule(pattern="$entries")
public class Inventory {

	@Cardinality(cardinalityType=CardinalityType.ZeroOrMore)
	List<ItemEntry> entries = new ArrayList<ItemEntry>();

	public List<ItemEntry> getEntries() {
		return entries;
	}

	public void setEntries(List<ItemEntry> entries) {
		this.entries = entries;
	}

}
